
public class MainPlayerModel 
{
	public enum Profession {HOBO, MECHANIC, STOCKBROKER}
	
	private int currProfession;
	private String name;
	private String[] partyMembers;
	
	public MainPlayerModel()
	{
		currProfession = 0;
		name = "";
		partyMembers = new String[4];
	}
	
	public void addPartyMember(String name)
	{
		int i = 0;
		while(partyMembers[i] != null) 
		{
			i++;
			if(i == partyMembers.length)
				System.err.println("Cannot add more party members!");
		}
		partyMembers[i] = name;
	}
	
	public String getProfession()
	{
		return Profession.values()[currProfession].toString();
	}
	
	public void setPace(int currProfession)
	{
		this.currProfession = currProfession;
	}
	
	public void setName(String name)
	{
		this.name = name;
	}
	
	public String getName()
	{
		return name;
	}
}
